package com.gitee.wsl.common.ui.symbol

import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Path
import com.gitee.wsl.common.ui.base.Point
import com.gitee.wsl.math.degreesToRadians
import com.gitee.wsl.mathematics.geometry.shape.Oval


fun Symbol.Companion.oval(startAngle: Float = 0f,
                          sweepAngle: Float = 360f,
                          position: Point,
                          size: Size) = Oval(startAngle, sweepAngle, position, size)


fun Path.oval(entry:Oval){
    addArcRad(oval = entry.rect,entry.startAngle.degreesToRadians(),entry.sweepAngle.degreesToRadians())
}

